﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoomList.aspx.cs" Inherits="Movie.web.RoomList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:TemplateField HeaderText="放映时间">
                    <ItemTemplate>
                   <asp:Literal ID="Literal1" runat="server" Text='<%# Eval("EndTime") %>' ></asp:Literal>
                    <asp:Literal ID="Literal2" runat="server" Text='<%# Eval("StartTime") %>'></asp:Literal>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="房间号">
                    <ItemTemplate>
                        <asp:Literal ID="Literal3" runat="server" Text='<%# GetName(Convert.ToInt32(Eval("RoomId"))) %>'></asp:Literal>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="价格">
                    <ItemTemplate>
                        <asp:Literal ID="Literal4" runat="server" Text='<%# Eval("price") %>'></asp:Literal>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField></asp:TemplateField>
                <asp:TemplateField HeaderText="选座购票">
                    <ItemTemplate>
                        <asp:Button ID="SelectSeat" runat="server" Text="选座购票" oncommand="SelectSeat_Command" CommandArgument='<%#Eval("ScheduleID") %>'   />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>

    </div>
    </form>
</body>
</html>
